package com.caiyi.financial.nirvana.sms.enums;

import com.youyu.common.api.IBaseResultCode;

/**
 * 返回代码
 *
 * @author lvchaohua
 */
public enum ReturnCodeEnum implements IBaseResultCode {

    /**
     * sms-api
     **/
    SUCCESS("0000", "SUCCESS"),
    PARAMS_ERROR("1001", "参数格式不正确"),
    ACCOUNT_ERROR("1002", "账号不存在"),
    REQUEST_SIGN_ERROR("1003", "请求签名错误"),
    IP_ERROR("1004", "客户端IP不合法"),
    BALANCE_ERROR("1005", "余额不足"),
    KEYWORD_ERROR("1006", "内容包含高危敏感词"),
    CONTENT_SIGN_ERROR("1007", "短信签名未报备"),
    ACCOUNT_TYPE_ERROR("1008", "账号类型无法识别"),
    GATEWAY_CONFIG_ERROR("1009", "通道配置错误"),
    TEMPLATE_ERROR("1010", "短信模板未报备"),
    PHONE_SIZE_ERROR("1011", "%s号码低于提交最小限制数量"),
    /**
     * sms-admin
     **/
    NOT_LOGIN_ERROR("2001", "用户未登录"),
    LAN_ERROR("2002", "非法网段登陆"),
    CAPTCHA_INVALID("2003", "图形验证码已过期"),
    FAILED("8888", "自定义类型");

    public String code;
    public String desc;

    ReturnCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
